package mr.zhang.service.impl;

import mr.zhang.dao.SubButtonDao;
import mr.zhang.dao.domain.Sub_Button;
import mr.zhang.service.SubButtonService;

import java.util.List;



public class SubButtonServiceImpl implements SubButtonService {
	
	private SubButtonDao subButtonDao;
	
	

	public SubButtonDao getSubButtonDao(){
		return subButtonDao;
	}

	public void setSubButtonDao(SubButtonDao subButtonDao) {
		this.subButtonDao = subButtonDao;
	}

	@Override
	public void saveSubButton(Sub_Button sub_Button) {
		// TODO Auto-generated method stub
		
		this.subButtonDao.saveSubButton(sub_Button);
		
	}

	@Override
	public void deleteSubButton(int id) {
		// TODO Auto-generated method stub
		
		this.subButtonDao.deleteSubButton(id);;
		
	}

	@Override
	public void updateSubButton(Sub_Button sub_Button){
		// TODO Auto-generated method stub
		
		this.subButtonDao.updateSubButton(sub_Button);
		
	}

	@Override
	public void deleteAllSubButton(int button_id){
		// TODO Auto-generated method stub
		
		this.subButtonDao.deleteAllSubButton(button_id);
		
	}

	@Override
	public List<Sub_Button> queryAllSubButton(int button_id) {
		// TODO Auto-generated method stub
		return this.subButtonDao.queryAllSubButton(button_id);
	}

	@Override
	public Sub_Button querySub_ButtonById(int id) {
		// TODO Auto-generated method stub
		return this.subButtonDao.querySub_ButtonById(id);
	}

}
